  <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">                
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                        Client
                        <small>Control panel</small>
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="<?=site_url()?>"><i class="fa fa-dashboard"></i> Accueil</a></li>
                        <li >Dossier</li>
                        <li class="active">Client</li>
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content">
                     <div class="row">

                    
                        <div class="col-xs-12">
                            <div class="box box-primary">
                            
                            	 <?php if(isset($errors)){?>
                            	
                            	 <div class="box-header">
        <div class="alert alert-danger alert-dismissible" role="alert">
      
  <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  <strong>Attentions!</strong> <ol><?foreach( $errors as $e ):?><li><?=$e?></li><?php endforeach;?></ol>
</div>
</div>
        <?php }?>
                     <form action="<?=site_url()?>customers/addCustomer" role="form" method="post">
                                <div class="box-body ">
                               
                                 	<div class="form-group">
                                 		<label>* Nom </label>
                                 		<input class="form-control" type="text" name="lastname" value="<?php echo set_value('lastname')?>" placeholder="Nom " >
                                 		<?php echo form_error('lastname'); ?>
                                 	</div>
                                 	<div class="form-group">
                                 		<label>* Prénom </label>
                                 		<input class="form-control" type="text" name="firstname" value="<?php echo set_value('firstname')?>" placeholder="Prénom " >
                                 		<?php echo form_error('firstname'); ?>
                                 	</div>
                                 	<div class="form-group">
                                 		<label>Titre</label>
                                 		<select class="form-control" name="gender">
                                 			
                                 			<?php foreach ($gender as $g):?>
                                 		
                                 				<option value="<?=$g->id?>"><?=$g->gender?></option>
                                 				
                                 			<?php endforeach;?>
                                 		
                                 		</select>		
                                 	</div>
                                 	<div class="form-group">
                                 		<label>Entreprise (option)</label>
                                 		<input class="form-control" type="text" name="company" value="<?=set_value('company')?>" placeholder="entreprise " >
                                 		
                                 	</div>
                                 	<div class="form-group">
                                 		<label>Email (option)</label>
                                 		<input class="form-control" type="email" name="email" value="<?=set_value('email')?>" placeholder="Email">
                                 		<?php echo form_error('email'); ?>
                                 	</div>
                                 	<div class="form-group">
                                 		<label>GSM (option)</label>
                                 		<input class="form-control" type="text" name="telephone" value="<?=set_value('telephone')?>" placeholder="GSM" >
                                 	</div>
                                 	<div class="form-group">
                                 		<label>Adresse (option)</label>
                                 		<input class="form-control" type="test" name="address" value="<?=set_value('address')?>" placeholder="Adresse" >
                                 	</div>
                              
                                 	<hr>
                                 	<div class="form-group">
                                 		<label>Comment: (option)</label>
                                 		<textarea class="form-control"  name="comment" value="<?=set_value('comment')?>" placeholder="Comment" ></textarea>
                                 	</div>
                                 <hr>
                                 <button type="submit" class="btn btn-primary btn-flat"><i class="fa fa-check"></i> ajouter</button> | <a href="<?=site_url()?>customers" class="btn btn-danger btn-flat"><i class="fa fa-times"></i> annuler</a>
                                </div><!-- /.box-body -->
                                </form>
                            </div><!-- /.box -->
                     
                    </div>

                            </div>
                           
                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->